package cn.nexd.location.indoor.core;

import android.content.Context;

import cn.nexd.location.indoor.NexdIndoorLocationConfiguration;
import cn.nexd.location.indoor.listener.NexdIndoorLocationListener;

/**
 * Created by codngfish on 16/5/5.
 */
public class IndoorLocationProxySubject implements IndoorLocationSubjec {

    private final IndoorLocationSubjec indoorLocationSubjec;

    public IndoorLocationProxySubject(Context context) {
        indoorLocationSubjec = new DefaultIndoorLocationSubjec(context);
    }

    @Override
    public void setIndoorLocationConfiguration(NexdIndoorLocationConfiguration indoorLocationConfiguration) {
        indoorLocationSubjec.setIndoorLocationConfiguration(indoorLocationConfiguration);
    }

    @Override
    public void setIndoorLocationListener(NexdIndoorLocationListener indoorLocationListener) {
        indoorLocationSubjec.setIndoorLocationListener(indoorLocationListener);
    }

    @Override
    public void startLocation(long buildingId, long floorId) {
        indoorLocationSubjec.startLocation(buildingId, floorId);
    }


    @Override
    public void stopLocation() {
        indoorLocationSubjec.stopLocation();
    }

    @Override
    public void destroyLocation() {
        indoorLocationSubjec.destroyLocation();
    }
}
